import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

//输入三个数，按照从小到大的顺序输出这三个数
public class homework24 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }

    }
}
